Optimal. Leaf size=131 \[ \frac {(b c-a d) (3 a d+b c) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{5/2}}+\frac {\sqrt {a+b x} \sqrt {c+d x} (3 a d+b c)}{4 a c^2 x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{2 a c x^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {96, 94, 93, 208} \begin {gather*} \frac {(b c-a d) (3 a d+b c) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{5/2}}+\frac {\sqrt {a+b x} \sqrt {c+d x} (3 a d+b c)}{4 a c^2 x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{2 a c x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 93
Rule 94
Rule 96
Rule 208
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x}}{x^3 \sqrt {c+d x}} \, dx &=-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{2 a c x^2}-\frac {\left (\frac {b c}{2}+\frac {3 a d}{2}\right ) \int \frac {\sqrt {a+b x}}{x^2 \sqrt {c+d x}} \, dx}{2 a c}\\ &=\frac {(b c+3 a d) \sqrt {a+b x} \sqrt {c+d x}}{4 a c^2 x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{2 a c x^2}-\frac {((b c-a d) (b c+3 a d)) \int \frac {1}{x \sqrt {a+b x} \sqrt {c+d x}} \, dx}{8 a c^2}\\ &=\frac {(b c+3 a d) \sqrt {a+b x} \sqrt {c+d x}}{4 a c^2 x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{2 a c x^2}-\frac {((b c-a d) (b c+3 a d)) \operatorname {Subst}\left (\int \frac {1}{-a+c x^2} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{4 a c^2}\\ &=\frac {(b c+3 a d) \sqrt {a+b x} \sqrt {c+d x}}{4 a c^2 x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{2 a c x^2}+\frac {(b c-a d) (b c+3 a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 113, normalized size = 0.86 \begin {gather*} \frac {\left (-3 a^2 d^2+2 a b c d+b^2 c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{5/2}}+\frac {\sqrt {a+b x} \sqrt {c+d x} (-2 a c+3 a d x-b c x)}{4 a c^2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 1.48, size = 239, normalized size = 1.82 \begin {gather*} \frac {\sqrt {\frac {b}{d}} \left (-3 a^2 d^{5/2}+2 a b c d^{3/2}+b^2 c^2 \sqrt {d}\right ) \tanh ^{-1}\left (\frac {d \sqrt {\frac {b}{d}} \sqrt {c+d x} \sqrt {a+\frac {b (c+d x)}{d}-\frac {b c}{d}}-b (c+d x)+b c}{\sqrt {a} \sqrt {b} \sqrt {c} \sqrt {d}}\right )}{4 a^{3/2} \sqrt {b} c^{5/2}}+\frac {\sqrt {a+\frac {b (c+d x)}{d}-\frac {b c}{d}} \left (-5 a c d^2 \sqrt {c+d x}+3 a d^2 (c+d x)^{3/2}+b c^2 d \sqrt {c+d x}-b c d (c+d x)^{3/2}\right )}{4 a c^2 d^2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.97, size = 330, normalized size = 2.52 \begin {gather*} \left [-\frac {{\left (b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2}\right )} \sqrt {a c} x^{2} \log \left (\frac {8 \, a^{2} c^{2} + {\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{2} - 4 \, {\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {a c} \sqrt {b x + a} \sqrt {d x + c} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x}{x^{2}}\right ) + 4 \, {\left (2 \, a^{2} c^{2} + {\left (a b c^{2} - 3 \, a^{2} c d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{16 \, a^{2} c^{3} x^{2}}, -\frac {{\left (b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2}\right )} \sqrt {-a c} x^{2} \arctan \left (\frac {{\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {-a c} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (a b c d x^{2} + a^{2} c^{2} + {\left (a b c^{2} + a^{2} c d\right )} x\right )}}\right ) + 2 \, {\left (2 \, a^{2} c^{2} + {\left (a b c^{2} - 3 \, a^{2} c d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{8 \, a^{2} c^{3} x^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 4.00, size = 1043, normalized size = 7.96 \begin {gather*} \frac {b {\left (\frac {{\left (\sqrt {b d} b^{3} c^{2} + 2 \, \sqrt {b d} a b^{2} c d - 3 \, \sqrt {b d} a^{2} b d^{2}\right )} \arctan \left (-\frac {b^{2} c + a b d - {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}}{2 \, \sqrt {-a b c d} b}\right )}{\sqrt {-a b c d} a b c^{2}} - \frac {2 \, {\left (\sqrt {b d} b^{9} c^{5} - 7 \, \sqrt {b d} a b^{8} c^{4} d + 18 \, \sqrt {b d} a^{2} b^{7} c^{3} d^{2} - 22 \, \sqrt {b d} a^{3} b^{6} c^{2} d^{3} + 13 \, \sqrt {b d} a^{4} b^{5} c d^{4} - 3 \, \sqrt {b d} a^{5} b^{4} d^{5} - 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} b^{7} c^{4} + 16 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a b^{6} c^{3} d - 14 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a^{2} b^{5} c^{2} d^{2} - 8 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a^{3} b^{4} c d^{3} + 9 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a^{4} b^{3} d^{4} + 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} b^{5} c^{3} - 7 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} a b^{4} c^{2} d - 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} a^{2} b^{3} c d^{2} - 9 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} a^{3} b^{2} d^{3} - \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{6} b^{3} c^{2} - 2 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{6} a b^{2} c d + 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{6} a^{2} b d^{2}\right )}}{{\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2} - 2 \, {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} b^{2} c - 2 \, {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a b d + {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4}\right )}^{2} a c^{2}}\right )}}{4 \, {\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 258, normalized size = 1.97 \begin {gather*} -\frac {\sqrt {b x +a}\, \sqrt {d x +c}\, \left (3 a^{2} d^{2} x^{2} \ln \left (\frac {a d x +b c x +2 a c +2 \sqrt {a c}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}}{x}\right )-2 a b c d \,x^{2} \ln \left (\frac {a d x +b c x +2 a c +2 \sqrt {a c}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}}{x}\right )-b^{2} c^{2} x^{2} \ln \left (\frac {a d x +b c x +2 a c +2 \sqrt {a c}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}}{x}\right )-6 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {a c}\, a d x +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {a c}\, b c x +4 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {a c}\, a c \right )}{8 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {a c}\, a \,c^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 19.77, size = 893, normalized size = 6.82 \begin {gather*} \frac {\ln \left (\frac {\sqrt {a+b\,x}-\sqrt {a}}{\sqrt {c+d\,x}-\sqrt {c}}\right )\,\left (\sqrt {a}\,b^2\,c^{5/2}-3\,a^{5/2}\,\sqrt {c}\,d^2+2\,a^{3/2}\,b\,c^{3/2}\,d\right )}{8\,a^2\,c^3}-\frac {\left (\sqrt {a+b\,x}-\sqrt {a}\right )\,\left (\frac {b\,d}{4\,a\,c}-\frac {3\,d\,\left (a\,d+b\,c\right )}{16\,a\,c^2}\right )}{\sqrt {c+d\,x}-\sqrt {c}}-\frac {\ln \left (\frac {\left (\sqrt {c}\,\sqrt {a+b\,x}-\sqrt {a}\,\sqrt {c+d\,x}\right )\,\left (b\,\sqrt {c}-\frac {\sqrt {a}\,d\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{\sqrt {c+d\,x}-\sqrt {c}}\right )}{\sqrt {c+d\,x}-\sqrt {c}}\right )\,\left (\sqrt {a}\,b^2\,c^{5/2}-3\,a^{5/2}\,\sqrt {c}\,d^2+2\,a^{3/2}\,b\,c^{3/2}\,d\right )}{8\,a^2\,c^3}-\frac {\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^5\,\left (\frac {a^2\,d^2}{4}-\frac {11\,a\,b\,c\,d}{16}+\frac {5\,b^2\,c^2}{16}\right )}{a\,c^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^5}-\frac {b^4}{32\,\sqrt {a}\,c^{3/2}\,d^2}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2\,\left (\frac {11\,a^2\,b^2\,d^2}{32}+\frac {a\,b^3\,c\,d}{8}-\frac {5\,b^4\,c^2}{32}\right )}{a^{3/2}\,c^{5/2}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^3\,\left (\frac {a^3\,b\,d^3}{16}-\frac {9\,a^2\,b^2\,c\,d^2}{8}+\frac {3\,a\,b^3\,c^2\,d}{8}+\frac {b^4\,c^3}{16}\right )}{a^2\,c^3\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^3}+\frac {\left (\frac {b^4\,c}{8}-\frac {a\,b^3\,d}{8}\right )\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{a\,c^2\,d^2\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^4\,\left (-\frac {7\,a^4\,d^4}{32}+\frac {a^3\,b\,c\,d^3}{2}+\frac {21\,a^2\,b^2\,c^2\,d^2}{32}-\frac {a\,b^3\,c^3\,d}{2}+\frac {b^4\,c^4}{32}\right )}{a^{5/2}\,c^{7/2}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}}{\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^6}{{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}+\frac {b^2\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^4\,\left (a^2\,d^2+4\,a\,b\,c\,d+b^2\,c^2\right )}{a\,c\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}-\frac {\left (2\,c\,b^2+2\,a\,d\,b\right )\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^3}{\sqrt {a}\,\sqrt {c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^3}-\frac {\left (2\,a\,d+2\,b\,c\right )\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^5}{\sqrt {a}\,\sqrt {c}\,d\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^5}}+\frac {d^2\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{32\,\sqrt {a}\,c^{3/2}\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a + b x}}{x^{3} \sqrt {c + d x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________